package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProgressMapper;
import com.ruoyi.system.domain.Progress;
import com.ruoyi.system.service.IProgressService;

/**
 * 进度表Service业务层处理
 *
 * @author ruoyi
 * @date 2024-04-28
 */
@Service
public class ProgressServiceImpl implements IProgressService
{
    @Autowired
    private ProgressMapper progressMapper;

    /**
     * 查询进度表
     *
     * @param progressId 进度表主键
     * @return 进度表
     */
    @Override
    public Progress selectProgressByProgressId(Long progressId)
    {
        return progressMapper.selectProgressByProgressId(progressId);
    }

    /**
     * 查询进度表列表
     *
     * @param progress 进度表
     * @return 进度表
     */
    @Override
    public List<Progress> selectProgressList(Progress progress)
    {
        return progressMapper.selectProgressList(progress);
    }

    /**
     * 新增进度表
     *
     * @param progress 进度表
     * @return 结果
     */
    @Override
    public int insertProgress(Progress progress)
    {
        return progressMapper.insertProgress(progress);
    }

    /**
     * 修改进度表
     *
     * @param progress 进度表
     * @return 结果
     */
    @Override
    public int updateProgress(Progress progress)
    {
        return progressMapper.updateProgress(progress);
    }

    /**
     * 批量删除进度表
     *
     * @param progressIds 需要删除的进度表主键
     * @return 结果
     */
    @Override
    public int deleteProgressByProgressIds(Long[] progressIds)
    {
        return progressMapper.deleteProgressByProgressIds(progressIds);
    }

    /**
     * 删除进度表信息
     *
     * @param progressId 进度表主键
     * @return 结果
     */
    @Override
    public int deleteProgressByProgressId(Long progressId)
    {
        return progressMapper.deleteProgressByProgressId(progressId);
    }
}
